cc=gcc
src=main.c process.c
target=mybin

$(target):$(src)
	gcc $^ -o $@
.PHONY:clean
clean:
	rm -f $(target)


#mybin:code.c
#	gcc $^ -o $@
#.PHONY:clean
#clean:
#	rm -f mybin
#



#cc=g++
#src=code.c
#target=mybin.exe
#
#$(target):$(src)
#	$(cc) $(src) -o $(target)
#.PHONY:clean
#clean:
#	rm -f $(target)
#



#mybin:code.c
#	@gcc code.c -o mybin
#	@echo "编译成功..."
#
#.PHONY:clean
#clean:
#	@rm -f mybin
#	@echo "清理成功..."
